﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InventoryCreate.aspx.cs"
    Inherits="SalesManagement.Modules.Warehouse.InventoryCreate" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Khởi tạo tồn đầu</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="ViewPort1" runat="server" Layout="RowLayout">
        <Items>
            <ext:GridPanel ID="GridPanel2" runat="server" AutoExpandColumn="pro_name" Border="false"
                RowHeight="1">
                <TopBar>
                    <ext:Toolbar ID="tbMain" runat="server">
                        <Items>
                            <ext:Button ID="Button1" runat="server" Text="Lưu" Icon="Disk">
                                <DirectEvents>
                                    <Click OnEvent="btnSave_Click" />
                                </DirectEvents>
                            </ext:Button>
                            <ext:ToolbarFill />
                            <ext:ComboBox ID="ComboBox1" runat="server" FieldLabel="Kho hàng" Width="300" LabelWidth="70">
                                <Items>
                                    <ext:ListItem Text="kho A" Value="hcm" />
                                    <ext:ListItem Text="kho B" Value="hn" />
                                </Items>
                                <SelectedItem Value="hcm" />
                            </ext:ComboBox>
                            <ext:ToolbarSeparator />
                            <ext:ComboBox ID="ComboBox2" runat="server" FieldLabel="Nhóm hàng" Width="300" LabelWidth="70">
                                <Items>
                                    <ext:ListItem Text="kho A" Value="hcm" />
                                    <ext:ListItem Text="kho B" Value="hn" />
                                </Items>
                                <SelectedItem Value="hcm" />
                            </ext:ComboBox>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Store>
                    <ext:Store ID="Store2" runat="server">
                        <Reader>
                            <ext:JsonReader IDProperty="pro_id">
                                <Fields>
                                    <ext:RecordField Name="pro_id" />
                                    <ext:RecordField Name="pro_name" />
                                    <ext:RecordField Name="pro_unit" />
                                    <ext:RecordField Name="pro_Amout" />
                                    <ext:RecordField Name="pro_Price" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <ColumnModel ID="ColumnModel2" runat="server">
                    <Columns>
                        <ext:Column ColumnID="pro_id" DataIndex="pro_id" Header="Mã hàng" />
                        <ext:Column DataIndex="pro_name" Header="Tên hàng" />
                        <ext:Column DataIndex="pro_unit" Header="Đơn vị tính" />
                        <ext:Column DataIndex="pro_Amout" Header="Số lượng đầu kì" />
                        <ext:Column DataIndex="pro_Price" Header="Đơn giá đầu kì" />
                    </Columns>
                </ColumnModel>
                <BottomBar>
                    <ext:PagingToolbar ID="PagingToolBar2" runat="server" PageSize="10" />
                </BottomBar>
                <LoadMask ShowMask="true" />
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
